// store/focus.js
import {
  ref
} from 'vue';

// 全局共享的焦点位置
export const currentPosition = ref({
  row: 0,
  col: 0
});

// 可选：导出一个方法，方便重置
export const resetFocus = (row = 0, col = 0) => {
  currentPosition.value = {
    row,
    col
  };
};